package com.dcxs.shop.module.product.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author zzh
 * @since 2020-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class JsProduct implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Integer  id;

    /**
     * 父类的id
     */
    private Integer threeId;

    /**
     * 父类的id
     */
    private Integer oneId;

    /**
     * 父类的id
     */
    private Integer twoId;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品缩略图
     */
    private String thumbnail;

    /**
     * 商品的标题介绍
     */
    private String title;

    /**
     * 商品的价格
     */
    private BigDecimal price;

    /**
     * 是否开启促销优惠 1：开启 0：不开启
     */
    private Integer disState;

    /**
     * 商品的促销价格
     */
    private BigDecimal disPrice;

    private LocalDateTime disBeginDatetime;

    private LocalDateTime disEndDatetime;

    /**
     * 供应商的id
     */
    private Integer supplierId;

    /**
     * 供应商的名称
     */
    private String supplierName;

    /**
     * 图文详细
     */
    private String imageText;

    /**
     * 商品参数
     */
    private String parameter;

    /**
     * 购买须知
     */
    private String instruction;

    /**
     * 证书图
     */
    private String certificate;

    private Integer promateState;

    private String  promatePic;

    private String  oneName;

    @TableField(exist = false)
    private List<String> picList;

    @TableField(exist = false)
    private List<JsProductSpecification> specificationList;


    @TableField(exist = false)
    private List<JsProductPay> payList;

    private Integer state;

    private String listPic;

    @TableField(exist = false)
    private Integer saleCount;

    private String  videoUrl;

    private Integer isFreeShipping;

}
